import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import NotFoundComponent from './components/NotFoundComponent.vue' 
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      children: [
        {path:'/express',name:'express_index',component: () => import(/* webpackChunkName: "express_index" */ './views/express/index.vue')},
				{path:'/express/company',name:'express_company',component: () => import(/* webpackChunkName: "express_company" */ './views/express/company.vue')},

        {path:'/user',name:'user_index',component: () => import(/* webpackChunkName: "user_index" */ './views/user/index.vue')},
        {path:'/user/detail/:id',name:'user_detail',component: () => import(/* webpackChunkName: "user_detail" */ './views/user/detail.vue')},

        {path:'/summary',name:'summary_index',component: () => import(/* webpackChunkName: "summary_index" */ './views/summary/index.vue')},
      ]
    },
    {
      path: '/user/login',
      name: 'user_login',
      component: () => import(/* webpackChunkName: "UserLogin" */ './views/user/login.vue'),
      meta: { skip: 123 }
    },
    { path: '*', component: NotFoundComponent }
  ]
})

